package com.zishi.service;

import com.zishi.model.pojo.User;
import com.baomidou.mybatisplus.extension.service.IService;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.multipart.MultipartFile;

/**
 * <p>
 * 用户表 服务类
 * </p>
 *
 * @author TP
 * @since 2022-05-05 08:53:41
 */
public interface UserService extends IService<User> {


    /**
     * 根据openId获取用户主键id
     */
    Integer getUserIdByOpenId(String openid);

    /**
     * 根据用户openid更新头像
     */
    String updateUserFavicon(MultipartFile file, String openId);

}
